#include <iostream>
#include <cmath>
using namespace std;


int main(int argc, char const *argv[]){
    int n;
    char a;
    cin >> n >>a;
    for(int i = 0; i < round(n * 0.5); i++){
        for(int j = 0; j < n; j++){
            if(i == 0 || i == round(n * 0.5) - 1){
                cout << a;
            }else{
                if(j == 0 || j == n - 1){
                    cout << a;
                }else{
                    cout << " ";
                }
            }

        }
        cout << "\n";
    }

    return 0;
}
